Microsoft DirectX 8.1 (C++)

MSVidCtl.InputsAvailable

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The InputsAvailable property retrieves the input devices that are available within a specified category.

Syntax

objMSVidCtl.InputsAvailable(
    CategoryGuid As String
) As MSVidInputDevices

Parameters

  strCategoryGuid

Specifies a GUID that identifies the device category to enumerate. Supported categories include the following:

Value Description
{71985F4B-1CA1-11d3-9CC8-00C04F7971E0} BDA-compatible tuner devices
{a799a800-a46d-11d0-a18c-00a02401dcd4} Non-BDA analog tuner devices.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

Returns a read-only MSVidInputDevices collection.

Remarks

This property is read-only.

Example Code

Const clsidAnalogTuners = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
Dim objTuner As MSVidAnalogTunerDevice
For Each objTuner in VideoControl.InputsAvailable(clsidAnalogTuners)
    List1.AddItem objTuner.Name
Next

See Also